<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'medicineout.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">

	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/styles.css">
	 <%String ctx =request.getContextPath(); 
	  request.setAttribute("ctx",ctx);
	%>
	<link rel="stylesheet" type="text/css" href="${ctx }/css/styles.css">
	<script type="text/javascript" src="${ctx}/js/My97DatePicker/WdatePicker.js"></script>
	<script type="text/javascript" src="${ctx}/js/calendar.js"></script> 
    <script type="text/javascript" src="${ctx}/js/jquery-1.7.1.js"></script>
    <script>
      $(function (){
      $("#name").change(function(){
       $.get("searcode.action",{"searchId":$("#name").val()},function(returnedData,status){
        
         $("#code").val(returnedData);
        
       });
      });
     });
    </script>
  </head>
  
  <body>
  <div class="div1">
		<table width="100%" cellpadding="0" cellspacing="0" border="0"
			align="center">
			<tr>
				<td class="td_title1">
						.当前位置
					&gt;&gt; 药品库存管理
					&gt;&gt; 药品出库登记
				
				</td>
			</tr>
			<tr>
				<td bgcolor="#FFFFFF" height="50">
					<br>
					<form action="savemedicineout.action" method="post">
						<input type="hidden" name="command" value="findMedicineByMedNo" />
						
						<table border="0" align="center" width="500" cellpadding="0"  cellspacing="0">
							
							<tr>
								<td align="right">
								药品名称:
								</td>
								<td align="left">
							   <select id="name" name="medicineId" >
								<option>请选择药品      </option>
								<s:iterator value="medicineinfo">
								<option value="<s:property value="medicineId"/>">
								 <s:property value="medicineName"/>
								</option>
								</s:iterator>
								</select>
								</td>
							</tr>
							<tr>
								<td align="right">
								药品编码:
								</td>
								<td align="left">
								<input type="text" size="20" id="code">
								</td>
							</tr>
							<tr>
								<td align="right">
								药品数量&nbsp;&nbsp;:
								</td>
								<td align="left">
								<input type="text" name="medicineOut.outCount" size="20">
								</td>
							</tr>
							
							<tr>
								<td align="right">
								登记时间:
								</td>
								<td align="left">
								<input type="text" name="medicineOut.outRecordTime" size="20" readonly="readonly"
					    	      onfocus="WdatePicker({skin:'default',dateFmt:'yyyy-MM-dd'})">
								</td>
							</tr>
							
							
							<tr><td colspan="2" align="center"><input type="submit" value="保存"/>&nbsp;&nbsp;&nbsp;&nbsp;
							<input type="button" value="取消">
							</td></tr>
						</table>
				   </form>
				</td>
			</tr>
		</table>
	</div>
  </body>
</html>
